package com.utils.toast

import android.widget.Toast
import androidx.annotation.IntDef

/**
 * @describe:
 * @Author: lixiaopeng
 * @Date: 4/7/21
 */
interface IToast {
    @IntDef(value = [Toast.LENGTH_SHORT, Toast.LENGTH_LONG])
    annotation class Duration

    fun setGravity(gravity: Int, xOffset: Int, yOffset: Int)
    fun setDuration(@Duration duration: Int)
    fun setView(toastView: IToastView?)
    fun show()
    fun hide()
}